/**
 * 
 */
package com.feonix.designPattern.Adapter.sample2;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.Adapter.sample1
 * @Author Feonixzw
 * @CreateDate 2018年1月25日
 */
public class PrintBanner extends Print {
	
	private Banner banner;
	
	public PrintBanner(String name){
		this.banner = new Banner(name);
	}
	
	public Banner getBanner() {
		return banner;
	}

	/* (non-Javadoc)
	 * @see com.feonix.designPattern.Adapter.sample2.Print#printWeak()
	 */
	@Override
	public void printWeak() {
		banner.showBannerWithParen();
		
	}

	/* (non-Javadoc)
	 * @see com.feonix.designPattern.Adapter.sample2.Print#printStrong()
	 */
	@Override
	public void printStrong() {
		banner.showBannerWithAster();
		
	}

}
